package com.pine.dao.pineframework.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pine.common.database.entity.BaseEntity;
import com.pine.dao.pineframework.constants.StatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 * 字典表
 * </p>
 *
 * @author pine manage
 * @since 2024-08-12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_dict")
@Schema(name = "SysDict", description = "字典表")
public class SysDict extends BaseEntity<Long> implements Serializable {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 6164624733155109103L;

    @Schema(description = "类型名称")
    private String name;

    @Schema(description = "类型编码")
    private String code;

    @Schema(description = "状态:0=启用,1=禁用")
    private StatusEnum status;

    @Schema(description = "描述、备注")
    private String remark;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
